function update(){

	
}

function loadGame(){
	//Getting all the variables
	var players = new Object();
	for(i=1;i<2;i++){
		players[i].name = "<%=request.getParameter(\"PlayerName"+i+"\")%>";
		players[i].pic = "<%=request.getParameter(\"PlayerPic"+i+"\")%>";
		alert(players[i].name+"----"+players[i].pic);
	}
	
	
	var div_board = "<div id=\"board\"></div>";
	$("body").insert(div_board);
	var div_players = "<div id=\"player1\"></div><div id=\"player2\"></div>" +
					  "<div id=\"player3\"></div><div id=\"player4\"></div>";
	$("div_board").insert(div_players);
	loadPlayers();
	//TODO: Finish this function
}


//TODO: Change imagePi.png for string 
function loadPlayers(){
	for(var i=1;i<=4;i++){
		$("player"+i).insert("<img id=\""+i+"\" src=\"imageP"+i+".png\">" +
							 "</img></div>");
	}
}